package com.example.todolist.mapper;

import com.example.todolist.dto.business.PlanCountDTO;
import com.example.todolist.dto.business.PlanStatusCountDTO;
import com.example.todolist.model.Plan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2022-02-26
 */
public interface PlanMapper extends BaseMapper<Plan> {

    List<Plan> queryPlanByCondition(String  planStartTime, String uid);


    PlanCountDTO queryPlanGroupByYear(String  planStartTime, String uid,String planType);


    PlanStatusCountDTO queryPlanStatusGroupByYear(String  planStartTime, String uid,String status);
}
